<html>
<head><meta charset="utf-8"><title>Embedding optimised bitcode is broken in rustc. · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Embedding.20optimised.20bitcode.20is.20broken.20in.20rustc.2E.html">Embedding optimised bitcode is broken in rustc.</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="236313177"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Embedding%20optimised%20bitcode%20is%20broken%20in%20rustc./near/236313177" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Edd Barrett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Embedding.20optimised.20bitcode.20is.20broken.20in.20rustc.2E.html#236313177">(Apr 27 2021 at 10:23)</a>:</h4>
<p>Hi all,</p>
<p>I've recently been playing around with embedding optimised (post-LTO) bitcode in programs as part of a JITting project we are working on.</p>
<p>Up until now, I can only experiment with C programs, as the rust compiler, for some reason, <a href="https://github.com/rust-lang/rust/issues/84395">makes a corrupted bitcode section</a>. Since our code-base is a rust lib, I'd like to be able to write my tests in Rust (and not C, which makes the build system complicated for us).</p>
<p>Before trying to fix this, I was hoping to strike up discussion. Does anyone have any comments or input?</p>
<p>Thanks</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>